<%-- 
    Document   : read
    Created on : May 23, 2012, 8:49:52 AM
    Author     : Jrdevelopment
--%>

<%@page import="java.util.ArrayList"%>
<%@page import="com.groupjjk.spectatorsportsonline.models.NBA.QuarterType"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
    <body>
        <%
            ArrayList<QuarterType> quarters = (ArrayList<QuarterType>) request.getAttribute("list");


        %>
        <h1> Consulta De Usuarios</h1>
        <form method="get" action="../frmModificar.jsp"> 
            <fieldset>
                <legend> Datos del Usuario</legend>

                <table >
                    <th >Id </th>
                    <th>Descriptions</th>

                    <%
                        for (QuarterType i : quarters) {

                            out.println("<tr>");
                            out.println("<td>" + i.getId() + "</td>");
                            out.println("<td>" + i.getDescription() + "</td>");
                            out.println("</tr>");
                            out.println("<tr>");
                            out.println("<td colspan='5' align='center'>");
                            out.println("<a href='NBA/quarterType/update.jsp?txtId=" + i.getId() + "'> Update"
                                    + " </a>");
                            out.println("<a href='NBA/quarterType/delete.jsp?txtId=" + i.getId() + "'> Delete </a>");
                            out.println("</td>");
                            out.println("</tr>");
                        }






                    %>

                </table>

                <a href="index.jsp">menu Principal</a>
            </fieldset> 
        </form>
    </body>
</html>
